package com.jy.framework.sys.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.validation.constraints.NotNull;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jy.framework.base.BaseEntity;

import com.jy.framework.base.TreeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 
 * 
 * @author qhchen
 * @email qunhu_chen@jy.com
 * @date 2018-12-14 17:14:18
 */
@ApiModel(value = "区域")
@TableName("sys_area")
@Getter
@Setter
public class SysAreaEntity extends TreeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	@ApiModelProperty(value = "主键")
@Excel(name = "主键")
	private Long id;

	/**
	 * 名称
	 */
	@NotNull(message = "请输入区域名称")
	private String name;
	
	/**
	 * 短名称
	 */
	@NotNull(message = "短名称")
	private String shortName;

	/**
	 * 区域编码
	 */
	@NotNull(message = "请输入区域编码")
	private Long code;
	/**
	 * 区域类型
	 */
	private String type;
	
	 
}
